home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8913 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  850 b 

  1. Path: news.sprintlink.net!snet!CT1!usenet
  2. From: Marc <marcd@mail.snet.net>
  3. Newsgroups: comp.lang.c
  4. Subject: Parallel Ports
  5. Date: 7 Mar 1996 05:13:44 GMT
  6. Organization: Southern New England Telephone
  7. Message-ID: <4hlra8$llk@CT1.SNET.Net>
  8. NNTP-Posting-Host: ht-sh2-port46.snet.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.22SNET (Windows; U; 16bit)
  13.  
  14. My question:
  15.  
  16. I would like to use the parallel port of a PC for controlling hardware.
  17.  
  18. I can control the output of the 8 data bits using:
  19.  
  20. #define PORT 0x3BC   /* LPT 1 */
  21. outp(PORT,value);
  22.  
  23. where 'value' is a hex number from 0x00 to 0xFF.
  24.  
  25. The problem is I need to control another bit (any other pin) along
  26. with the strobe.  Any help would be greatly appreciated.  Email
  27. respones are welcome to: marcd@snet.net 
  28.  
  29. Thank you,
  30. Marc
  31.  
  32.